package com.wms.assumption;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AssertBase {

	static private Logger logger = LoggerFactory.getLogger(AssertBase.class);
	
	public static void assertEquals(Object actual, Object expected) {
		try {
			org.testng.Assert.assertEquals(actual, expected);
			logger.info("实际结果" + "：\"" + actual + "\" ，跟期望结果" + "：\"" + expected + "\" 相匹配");

		} catch (Error e) {
			logger.info("实际结果" + "：\"" + actual + "\" ，跟期望结果" + "：\"" + expected + "\" 不匹配");
		}
	}

}
